<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript" src="/js/xadmin.js"></script>
<script src="/layui/layui.js" charset="utf-8"></script>
<tr th:if="${msgggg!=null}">
    <td th:if="${msgggg=='success'}">
        <script >
            var form = layui.form;
            layui.use('form', function() {
                layer.alert("预订成功",function () {
                    window.location.href = "/loginSuccess";
                });
            });
        </script>
    </td>
    <td th:unless="${msgggg=='success'}">
        <script>
            var form = layui.form;
            layui.use('form', function() {
               layer.alert("预订失败",function () {
                    window.location.href = "/loginSuccess";
                });
            });
        </script>
    </td>
</tr>
<script>
    var form = layui.form;
    layui.use('form', function() {
    });
</script>
</body>
</html>